home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / text / hints / volume_01 / issue_06 < prev    next >
Text File  |  1995-02-16  |  14KB  |  363 lines

  1. •   (1.2 OS) If you want to look at the desktop manager programs and
  2. perhaps modify them and run them from disk, the following information
  3. may be of use:
  4. 1.6
  5. The DESKTOP has its own filing system activated by *DESKFS. If you do a
  6. *CAT, you will get:   DeskTopMgr
  7. 1.6
  8. DeskTopMgr2
  9. 1.6
  10. &.!palette
  11. 1.6
  12. Icons.Desktop
  13. 1.6
  14. Icons.Calculator
  15. 1.6
  16. Icons22.Desktop
  17. 1.6
  18. Icons22.Calculator
  19. 1.6
  20. You can then LOAD the DeskTopMgr2 program and LIST it. (DeskTopMgrÊis
  21. just the 5-line startup program that gets left in BASIC when you exit
  22. the desktop.)
  23. 1.6
  24. If you change back to *ADFS, you can then save the program. To copy the
  25. palette and/or the Icons, you have to use commands such as:
  26. 1.6
  27. *COPY DESKFS:I*.Desktop $.I*.Desktop
  28. 1.6
  29. (assuming you are in ADFS and have created a directory called Icons)
  30. 1.6
  31. To run the program from disk, you need the icon and palette files to be
  32. copied across then if you fancy tackling 76k of “crunched” BASIC
  33. program, you can try editing it!
  34. 1.6
  35. •   If you are using the decrement or increment (+= or −=) in a BASIC
  36. program and you get a “Mistake” error on that line, the chances are that
  37. you have forgotten to initialise the variable. Try typing X=X+1:PRINT X
  38. and it will give the value 1 but if you type Y+=1 it will say “Mistake”.
  39. What it really should say is “Unknown or missing variable”, but still,
  40. good programmers won’t get the problem because we always remember to
  41. initialise all our variables, don’t we? (We do?)
  42. 1.6
  43. •   Testing multi-sync output without a multi-sync monitor! If you are
  44. writing software and hoping to sell enough of it to be able to afford a
  45. multi-sync monitor(!) you have the problem of testing your software in
  46. modes 18 to 20. If you use *Configure MonitorType 1, modes 0 to 17 are
  47. still displayed as normal then when you select modes 18 to 20 and
  48. generate the screen output, you can use a screendump (such as Gerald
  49. Fitton’s minidump or *HardCopyFX) to look at what you’ve got. If you’re
  50. worried about damaging the monitor, switch it off before changing mode.
  51. 1.6
  52. •   Using large printer buffers etc. If you’re using a buffer that’s
  53. larger than 64 kbytes, it’s no use trying to use ADVAL with a negative
  54. number (e.g. PRINT ADVAL(-4) for the printer buffer) − it only returns
  55. the least two significant bytes. Instead, use SYS “OS_Byte”, &80, &FC TO
  56. , X%, Y% : bytes_free%= X%+256*Y% where &FC is the − 4 value. (Actually,
  57. instead of working out that − 4 is the equivalent of &FC you can, it
  58. seems, be lazy and use − 4 in the SYS command. Ed.)
  59. 1.6
  60. •   Easy loading of modules: To enable you to load the emulator and fast
  61. BASIC easily, you can create some library programs on your Welcome disc
  62. (or better still, a copy of your Welcome disc!). This is what you do for
  63. fast BASIC:
  64. 1.6
  65. *BUILD LIBRARY.FAST
  66. 1.6
  67. *FX225,1|M
  68. 1.6
  69. *KEY1 QUIT||M*MODULES.RAMBASIC
  70. 1.6
  71. ||M*KEY1||MCLS||MHELP||M
  72. 1.6
  73. *FX138,0,129
  74. 1.6
  75. <escape>
  76. 1.6
  77. and then change it into a BASIC program with
  78. 1.6
  79.  *SETTYPE LIB*.FAST &FFB<return>.
  80. 1.6
  81. Note that there are double pad characters before each ‘M’ in order that
  82. when the program line is run, each double pad character is interpreted
  83. as a single pad character for the actual key definition.
  84. 1.6
  85. The bits after calling the module are optional. The first is to clear
  86. key1 again in case you press it accidentally. The second is to clear the
  87. screen and the third is to give a help message to show that you are
  88. actually in RAM_BASIC. (See below).
  89. 1.6
  90. Once this is set up, to get into fast BASIC all you do is type
  91. *FAST<return>.
  92. 1.6
  93. For the 6502 emulator, use the name LIB*.6502 and don’t put the HELP
  94. command in because that does not work on BASIC IV.
  95. 1.6
  96. •   Tidying up after ArcWriter! You can do a similar thing to the above
  97. hint in order to tidy up after using ArcWriter.
  98. 1.6
  99. *BUILD LIBRARY.RESET
  100. 1.6
  101. *FX225,1|M
  102. 1.6
  103. *KEY1 QUIT||M*CONFIGURE FONTSIZE
  104. 1.6
  105. 2||M*RMREINIT FONTMANAGER||M
  106. 1.6
  107. *RMTIDY||M*BASIC||M
  108. 1.6
  109. *KEY1||MHELP||M
  110. 1.6
  111. *FX138,0,129
  112. 1.6
  113. <escape>
  114. 1.6
  115. Typing *RESET will do the tidy-up for you.
  116. 1.6
  117. •   Identifying RAMBASIC. To get RAM_ BASIC to tell you that it actually
  118. IS the RAM version and not the ROM version, you can change a few bytes
  119. so that it prints out ‘RAM BBC BASIC’ instead of ‘ARM BBC BASIC’ on the
  120. startup and HELP messages. To do this, proceed as follows:
  121. 1.6
  122. *LOAD MO*.RAM* 20000
  123. 1.6
  124. ?&202B0=ASC“R”
  125. 1.6
  126. ?&202B1=ASC“A”
  127. 1.6
  128. ?&23F78=ASC“R”
  129. 1.6
  130. ?&23F79=ASC“A”
  131. 1.6
  132. *SAVE MO*.RAM_BASIC 20000 +E434
  133. 1.6
  134. *SETTYPE MO*.RA* &FFA
  135. 1.6
  136. •   Reversing the CAPS lock. If you hold down the shift key when you put
  137. the CAPS lock light on, you will find that the shift key now has the
  138. opposite effect, i.e. letters typed without pressing shift come up as
  139. uppercase letters, but when you press the shift key you get lower case
  140. letters. This can be useful if you are programming and mostly work in
  141. upper case but with occasional use of lower case.
  142. 1.6
  143. •   Displaying screens in different modes. If you have a screen that has
  144. been SCREENSAVE’d, you can display it in another mode. (e.g. Artisan
  145. screens in 256 colour modes!) Assuming you have configured spritesize to
  146. at least 11, proceed as follows:
  147. 1.6
  148. MODE 13
  149. 1.6
  150. *SLOAD filename  \ NOT
  151. 1.6
  152.  *SCREENLOAD
  153. 1.6
  154. *SCHOOSE screendump
  155. 1.6
  156. PLOT &ED,0,0
  157. 1.6
  158. You will note that the palette has changed and that it is a lower
  159. resolution, however, it will still be quite decent and you will have all
  160. those lovely colours to play around with!
  161. 1.6
  162. If you choose mode 15, you will get the same picture displayed in 256
  163. colours but squeezed into only half the screen width.
  164. 1.6
  165. If you want to change the colours you will have to load it into the
  166. sprite editor (SEDIT) and change the colours manually.
  167. 1.6
  168. •   Using the View Series. You will find that after coming from the
  169. desktop, TAB does not work. The solution is to type *FX219,9.
  170. 1.6
  171. ViewProfessional works fine if you use the second processor version −
  172. the VP file on the 5.25“ disk − however it should be *LOAD’ed at 4000
  173. (not 8000) and called with *GO 4000. (See page 5, Archive 1.1)
  174. 1.6
  175. •   Diary/Notepad problems. Beware: If you are printing something from
  176. notepad or diary, check that an active printer is on-line before
  177. starting to print otherwise the system may hang up and the only way out
  178. is to press <ctrl-break> − frustrating if you haven’t saved the text
  179. first!
  180. 1.6
  181. •   Slower listings. I know this is obvious to ex-BBC users, but I’ve
  182. not seen mentioned anywhere the fact that holding <ctrl> and <shift>
  183. keys down together will stop the screen scrolling. Archimedes lists
  184. programs so quickly that even if you use <ctrl-N> to get a paged
  185. listing, you may well get two pages instead of one if you hesitate on
  186. pressing the shift key, so using <ctrl> and <shift> allows you to
  187. control the listing yourself.
  188. 1.6
  189. •   File transfer between wordprocessors. If you have Wordwise Plus or
  190. View files and you want to import them into GraphicWriter, use *SETTYPE
  191. filename &FFF to ensure that GraphicWriter sees them as text files.
  192. (Actually it should already see Wordwise Plus files as text because of
  193. the save address that Wordwise Plus uses − check by doing *INFO *.) Then
  194. you can simply load the files into GraphicWriter using the file menu. To
  195. transfer the files back to View or Wordwise, you need to save them as
  196. ASCII files. This is done by opening the file menu then clicking on the
  197. word “TEXT” with the ADJUST button, typing in a filename and pressing
  198. <return>.
  199. 1.6
  200. (I tried to do the same sort of thing with ArcWriter but it kept
  201. crashing each time I tried to load a file, so I gave up!)
  202. 1.6
  203. •   Smart ON ERROR routine. If your ON ERROR routine includes the
  204. following, you get the usual error message and then, if you press any
  205. key other than <escape> it will drop into the ARM BASIC editor at the
  206. offending line. So if you do not want to go into the editor, press
  207. <escape> instead.
  208. 1.6
  209. ON ERROR OFF
  210. 1.6
  211. PRINT REPORT$+“ at line ”;ERL
  212. 1.6
  213. dummy%=GET
  214. 1.6
  215. SYS 5,(“KEY0 EDIT ”+STR$(ERL)
  216. 1.6
  217. +“|M”)
  218. 1.6
  219. SYS 6,138,0,128
  220. 1.6
  221. END
  222. 1.6
  223. If you prefer to move into EDIT a few lines above the offending line,
  224. use STR$(ERL−50) or whatever.
  225. 1.6
  226. •   Dual purpose boot files. It is quite possible to have a boot file
  227. that will work equally well from within the desktop or as a conventional
  228. boot file operated with <shift-break>. What you do is *BUILD the file as
  229. usual but then *settype <filename> &FFB which gives it a link to BASIC.
  230. If you then double-click on it in the desktop, it adds line numbers to
  231. it and runs it as a BASIC program. However, it will only work with
  232. <shift-break> if the machine is configured to start up in BASIC, not in
  233. the desktop (i.e. *CON. Language 4, not 3).
  234. 1.6
  235. •   With the PC emulator you can get more space than Mark Sealey
  236. reckoned in his review last month by *unplugging various of the modules.
  237. On reader reckons to get almost 590,000 bytes free (= 576k).
  238. 1.6
  239. •   Disabling Modules. Archive no.5 explains how *Unplug can be used to
  240. disable Modules, but this method needs a <ctrl-break>. An alternative is
  241. to use *RMKill and *RMTidy from the operating system *-prompt (not from
  242. BASIC), e.g.
  243. 1.6
  244. *RMKill FontManager
  245. 1.6
  246. *RMKill StringLib
  247. 1.6
  248. *RMKill Percussion
  249. 1.6
  250. *RMKill ARMBasicEditor
  251. 1.6
  252. *RMKill WindowManager
  253. 1.6
  254. *RMTidy
  255. 1.6
  256. This typically releases 96 Kbytes of memory on an A310 machine and
  257. doesn’t need a <ctrl-break>. It is particularly useful if you’re short
  258. of space in BASIC, Pascal or FORTRAN, etc and aren’t using fancy sound,
  259. the WIMP environment or the BASIC editor. Each module can be reinstated
  260. by using *RMReinit <Module name>, or all can be restarted by <ctrl-
  261. break>.
  262. 1.6
  263. •   GW BASIC on the PC Emulator. There is an undocumented way to get
  264. back into the MS-DOS operating system after using GW BASIC. Try pressing
  265. function key f-11.
  266. 1.6
  267. •   PC Emulator. Version 1.09 (which existing users can get by sending
  268. back their old disc plus £15 to Acorn) runs, amongst other things,
  269. Ability Plus, dBase 3 Plus, Kermit, Word Perfect, LTS NewsMaster (see
  270. separate review). (Can anyone add to this list?)
  271. 1.6
  272. •   RS423É yet again! If you have the 1.2 operating system and if you
  273. have the version of the serial chip that is made by GTE (it’s the 28 pin
  274. IC at the back left of the pcb) and if you change over from using the
  275. CTS line at the Archimedes end to using the DSR line (i.e. link 1, 4 and
  276. 8 and join pin 6 to the RTS line from the other machine) then Acorn have
  277. a fix which you load in as a module. Send a blank disc to Customer
  278. Services to get a copy. The version they sent me didn’t work the first
  279. time I tried it with some data transfer software so I pressed <escape>
  280. and tried again and it worked perfectly at 19,200 baud. Then I tried
  281. again and it wouldn’t send anything, pressed <escape> and away it went!
  282. Still, when you do get it going it sends and receives at 19,200 baud in
  283. both directions without any data corruption. I left it running for a
  284. couple of hours and there was no corruption at all.
  285. 1.6
  286. •   After the desktopÉ simpler than the list of FX commands that we gave
  287. last month is to call SYS“Wimp_CloseDown” (which is what Acorn should
  288. have put in their desktop program in the first place!!!) but if you
  289. don’t fancy trying to type that every time, getting upper and lower case
  290. exactly correct, you can create a one line BASIC program with 10
  291. SYS“Wimp_Close Down” and save it on your disk as $.library. undesk and
  292. then just type *undesk (or whatever abbreviation you can get away with)
  293. and all will be restored to normal.
  294. 1.6
  295. •   Using the Seikosha 250X printer is a bit of a problem. When you plug
  296. it into the Archimedes, all power is lost. This seems to be because of
  297. the +5.0 volts on lines 18 and 36 of the printer connector − these are
  298. earthed at the Archimedes end and so have to be disconnected somehow.
  299. One reader, Adrian Moreton, has succeeded but it is too complicated to
  300. explain here. If you want the information, send us an s.a.e. and we’ll
  301. send you a photocopy of his letter and the excellent diagrams he has
  302. drawn.
  303. 1.6
  304. •   ADFS wildcards. Had you gathered that ADFS will take * or #
  305. wildcards anywhere in a filename? On the BBC, you could only put them at
  306. the end of the filename. So, for example, if you’ve got PROGRAM1,
  307. PROGRAM2, PROGRAM3 etc you only need to say something like LOAD “PR*2”
  308. or even LOAD “*2” if none of the other files have numeric endings. That
  309. makes life much easier, doesn’t it?! (Thanks to Benjamin Finn for
  310. pointing that out. The next hint is his, too.)
  311. 1.6
  312. •   Errors in library procedures. If an error occurs in a PROC or FN
  313. that is installed using LIBRARY or INSTALL, the correct error message is
  314. given but the line number quoted is the last number in the main program.
  315. Although we cannot get a line number pointer to the error, we can at
  316. least find out from which procedure in the main program the library
  317. routine was called when the error occurred.
  318. 1.6
  319. At the beginning of each definition of a PROC or FN you should put
  320. something like:
  321. 1.6
  322.    DEF PROCdosomething
  323. 1.6
  324.    LOCAL ERROR
  325. 1.6
  326.    ON ERROR LOCAL PRINT REPORT$
  327. 1.6
  328.  “ in PROCdosomething”:END
  329. 1.6
  330.       .
  331. 1.6
  332.       .
  333. 1.6
  334.    ENDPROC
  335. 1.6
  336. •   Help with Econet is offered by Michael Ryan of XOB, Balkeerie,
  337. Eassie, By Forfar, Angus, DD8 1SR. Michael says, “Here are some comments
  338. about Archimedes on Econet in response to comments in Archive 1.3, page
  339. 8.
  340. 1.6
  341. “RDFREE is part of the Econet filing system module and hence not a disc-
  342. based utility as with the BBC version. Issued with a user identity as
  343. parameter, it gives the total disc free space and that user’s allocated
  344. portion of it. Issued with no parameter, it returns the user’s own free
  345. space and the total free space.
  346. 1.6
  347. “Acorn are supplying a number of other utilities including SETFREE,
  348. SETSTAT, USERS, PROT and UNPROT, though they have not yet made it clear
  349. how they are to be distributed, so don’t hold your breath.
  350. 1.6
  351. “Though it is very unlikely that they will supply the more sophisticated
  352. utilities (VIEW, REMOTE, NOTIFY etc) all is not lost. XOB already have a
  353. wide range of utilities for the BBC/Master series and have already
  354. implemented several of them on the Archimedes. More details from us on
  355. 0307−84364.”
  356.  
  357. •   Most of the keys on the numeric pad have secondary functions if used
  358. with the Num Lock off. In BASIC, 1 gives copy, 2 and 3 are both cursor
  359. down, 4 is cursor left, 5 doesn’t seem to do anything, 6 is cursor
  360. right, 7 is ‘cursor home’ and 8 and 9 and cursor up. In View, the single
  361. cursor movements are 2, 4, 6 and 8 while 3 and 9 are page down and page
  362. up respectively.
  363.